<!DOCTYPE html>
<html>
<head>
<title>平涛</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="description" content="">
<link rel="stylesheet" href="__PUBLIC__/lib/weui.min.css">
<link rel="stylesheet" href="__PUBLIC__/css/jquery-weui.css">
</head>

<body ontouchstart>
    <div class="weui_msg">
        <div class="weui_icon_area"><i class="weui_icon_warn weui_icon_msg"></i></div>
        <div class="weui_text_area">
            <h2 class="weui_msg_title">首次登录绑定</h2>
            <p class="weui_msg_desc">当前微信尚未绑定平涛业务系统</p>
        </div>
        <div class="weui_opr_area">
            <p class="weui_btn_area">
                <a href="javascript:;" id='show-login' class="weui_btn weui_btn_primary">绑定业务系统账号</a>
            </p>
        </div>
    </div>
    <script src="__PUBLIC__/lib/jquery-2.1.4.js"></script>
    <script src="__PUBLIC__/lib/fastclick.js"></script>
    <script src="__PUBLIC__/js/jquery-weui.js"></script>
    <script>
        $(function() {
            FastClick.attach(document.body);
        });
        $(document).on('click', '#show-login', function() {
            $.login({
                title: '已有账号绑定',
                // text: '请输入用户名和密码',
                onOK: function (username, password) {
                    $ajax({
                        
                    })
                console.log(username, password);
                $.toast('登录成功!');
                window.location.replace('index.html');
                },
                onCancel: function () {
                    $.toast('取消登录!', 'cancel');
                }
            });
        });
    </script>


</body>
</html>
